/*
 * Created on Jun 16, 2005
 */
package org.vectrics.web.content;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.vectrics.common.db.RecordObject;
import org.vectrics.common.db.Voidable;

/**
 * @author MMoore
 */
public class Section implements Voidable {
	private String code = null;
	private String description = null;
	private String title = null;
	private Set contents = new HashSet();
	boolean voided = true;
	
	/**
	 * 
	 */
	public Section() {
		super();
	}

	
	
	/**
	 * @return Returns the code.
	 */
	public String getCode() {
		return code;
	}



	/**
	 * @param code The code to set.
	 */
	public void setCode(String code) {
		this.code = code;
	}



	/**
	 * @return Returns the description.
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description The description to set.
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return Returns the title.
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @param title The title to set.
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return Returns the voided.
	 */
	public boolean getVoided() {
		return voided;
	}
	/**
	 * @param voided The voided to set.
	 */
	public void setVoided(boolean voided) {
		this.voided = voided;
	}
	
	/**
	 * @return Returns the contents.
	 */
	public Set getContents() {
		return contents;
	}
	
	/**
	 * @param contents The contents to set.
	 */
	private void setContents(Set contents) {
		this.contents = contents;
	}
	
	public SectionContent addContent() {
		SectionContent content = new SectionContent();
		contents.add(content);
		content.setSection(this);
		return(content);
	}
}
